package com.firmiana.jt809;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 入口
 * @author hucl
 * @date 2020/8/25 11:03
 */
@Configuration
@ComponentScan(basePackages = "com.firmiana.jt809")
public class JT809Main {

    final static String host = "localhost";
    final static int port = 8888;

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(JT809Main.class);
        JT809Launcher.launch(context, port, host);
        JT809Launcher.start();
    }
}
